local TREE_DEFS =
{
    sw_shadow_tree = {
        build            = "sw_shadow_tree",
        bank             = "sw_shadow_tree",

        snowcovered      = false, -- 是否有雪图层
        directional_fall = false, -- 是否根据砍伐者视角决定树倒下的方向
        shelter          = true,  -- 是否有庇护效果

        -- GROW_CONSTRAINT  =
        -- {
        --     TILE = WORLD_TILES.ROCKY,
        --     SEASON = SEASONS.SUMMER,
        -- },

        -- 被砍伐
        workaction       = "MINE",

        -- 添加动态阴影并设置大小
        shadow_size      = 4.5,

        -- 产物及产量
        fruit_prefab     = "sw_shadow_fragment",
        numtoharvest     = 3,

        -- 各个阶段的掉落物
        LOOT             =
        {
            normal = {
                { "dreadstone",     1.0 },
                { "dreadstone",     1.0 },
            },

            tall = {
                { "dreadstone",     1.0 },
                { "dreadstone",     1.0 },
                { "dreadstone",     1.0 },
                { "dreadstone",     1.0 },
            },

            pillar = {
                { "sw_shadow_seed", 1.0 },
                { "dreadstone",     1.0 },
                { "dreadstone",     1.0 },
                { "dreadstone",     1.0 },
                { "dreadstone",     1.0 },
                { "dreadstone",     1.0 },
                { "dreadstone",     1.0 },
            },

            stump = {
                { "dreadstone", 1.0 },
            },
        },

        -- 包含音效列表
        sounds           =
        {
            grow = "dontstarve/common/together/marble_shrub/grow",
            onshowfruits = "meta4/ancienttree/gemfruit/fruiting",
            onpicked = "dontstarve/wilson/harvest_sticks",
            onworkfinish = "dontstarve/forest/treefall", -- TODO
            ambience = "meta4/ancienttree/gemfruit/sway_lp",
        },

        -- 物理碰撞半径
        physics_rad      = 1,

        -- 客户端补充
        -- common_postinit  = function(inst)
        -- end,

        -- 服务端补充
        -- master_postinit  = function(inst)
        -- end,
    },
}

local PLANT_DATA =
{
    fruit_regen = { min = 20 * TUNING.TOTAL_DAY_TIME, max = 21 * TUNING.TOTAL_DAY_TIME },
}


return { TREE_DEFS = TREE_DEFS, PLANT_DATA = PLANT_DATA }
